package de.szut.ita13sommerfeld.blockadventure.textures;

import java.awt.image.BufferedImage;

public class SpriteSheet {

	private BufferedImage sprite;
	
	public SpriteSheet(BufferedImage sprite) {
		this.sprite = sprite;
	}
	
	public BufferedImage grabSubImageOnSprite(int column, int row, int width, int height) {
		return sprite.getSubimage((column * width) - width, (row * height) - height, width, height); 
	}
	
}
